import yaml
# 数据驱动层

# 读取数据文件
def load_config(path):
    file = open(path, 'r', encoding='utf-8')
    data = yaml.load(file, Loader=yaml.FullLoader)
    return data